package com.cl.utils;

import java.util.List;

public class PageBean {
	//当前页
	private int cutterPage;
	//每页显示的数据
	private int pageSize;
	//总记录数
	private int count;
	
	private int code = 0;
	//结果集
	private List data;
	
	public PageBean(int cutterPage, int pageSize, int count) {
		super();
		this.cutterPage = cutterPage;
		this.pageSize = pageSize;
		this.count = count;
	}
	
	public int getCutterPage() {
		return cutterPage;
	}
	public void setCutterPage(int cutterPage) {
		this.cutterPage = cutterPage;
	}
	public int getPageSize() {
		return pageSize;
	}
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	public int getCount() {
		return count;
	}
	public void setCount(int count) {
		this.count = count;
	}
	public int getCode() {
		return code;
	}
	public void setCode(int code) {
		this.code = code;
	}
	public List getData() {
		return data;
	}
	public void setData(List data) {
		this.data = data;
	}
	
	public int getStart(){
		return (this.cutterPage - 1) * this.pageSize;
	}
	
}
